MC_TouchProbe

Function block MC_TouchProbe
Records an axis' position at a trigger event.
VAR_IN_OUT
B AxisIn AXIS_REF Reference to an axis.
E TriggerInput MC_TRIGGER_REF Reference to the trigger signal source. Trigger input may be specified by the AXIS_REF.
VAR_INPUT
B Execute BOOL Starts touch probe recording at rising edge.
E WindowOnly BOOL If set, only the value in the window will be used to trigger events. The window is the range between FirstPosition and LastPosition.
E FirstPosition LREAL Start position from where (positive direction) trigger events are accepted (in user units). Value included in window. Currently, FirstPosition must be less than LastPosition.
E LastPosition LREAL Stop position of the window (in user units). Value included in window.
VAR_OUTPUT
B Done BOOL Trigger event recorded.
E Busy BOOL The function block is not finished and new output values are to be expected.
E CommandAborted BOOL The command is aborted by another command.
B Error BOOL Signals that an error has occurred within the function block.
E ErrorID MC_Error Error identification.
  • Intended for single shot operation. That is, the first event after the rising edge when Execute is valid. Possible following events are ignored.
  • One function instance should represent exactly one probing command.
  • In case of multiple instances on the same probe and axis, the elements of the MC_TRIGGER_REF structure should be extended with TouchProbeID, the identification of a unique probing command, which can be linked to MC_AbortTrigger.
  • After MC_TouchProbe is done, you need to wait one cycle for the touch probe to take effect.
  • For further details about how MC_TouchProbe works, see Touch probe in Concepts.

 

  MC_TouchProbe  
AXIS_REF   AxisIn   Axis   AXIS_REF
MC_TRIGGER_REF   TriggerInput   TriggerInput   MC_TRIGGER_REF
BOOL   Execute   Done   BOOL
BOOL   WindowOnly   Busy   BOOL
LREAL   FirstPosition   CommandAborted   BOOL
LREAL   LastPosition   Error   BOOL
        ErrorID   MC_Error
        RecordedPosition   LREAL
             

 

Timing example of MC_TouchProbe

 

Examples of windows, where trigger events are accepted (for modulo axes)